package com.marvels.system.permission.dto;

import java.util.List;

import com.marvels.common.dto.BaseDTO;

/**
 * 组织机构DTO
 * @author wangliang
 *
 */
public class SysOrgDTO extends BaseDTO {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	//主键id
    private Integer orgId;
    //组织机构代码
    private String orgCode;
    //组织机构名称
    private String orgName;
    //父级组织代码, -1时为根节点
    private String parentOrgCode;
    //父级组织名称
    private String parentOrgName;
    //描述
    private String description;
    //排序
    private Integer sort;
    
    //子节点
    private List<SysOrgDTO> children;

    public Integer getOrgId() {
        return orgId;
    }

    public void setOrgId(Integer orgId) {
        this.orgId = orgId;
    }

	public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description == null ? null : description.trim();
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

	public List<SysOrgDTO> getChildren() {
		return children;
	}

	public void setChildren(List<SysOrgDTO> children) {
		this.children = children;
	}

	public String getOrgCode() {
		return orgCode;
	}

	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	public String getParentOrgName() {
		return parentOrgName;
	}

	public void setParentOrgName(String parentOrgName) {
		this.parentOrgName = parentOrgName;
	}

	public String getOrgName() {
		return orgName;
	}

	public void setOrgName(String orgName) {
		this.orgName = orgName;
	}

	public String getParentOrgCode() {
		return parentOrgCode;
	}

	public void setParentOrgCode(String parentOrgCode) {
		this.parentOrgCode = parentOrgCode;
	}
	
}